import request from '../utils/request';

export const getAll = query => {
    return request({
        url: query.url,
        method: 'post',
        data: query.data
    });
};

export const getPermission = query => {
    return request({
        url: query.url,
        method: 'get',
        params: query.data
    });
};

export const editModel = query => {
    return request({
        url: query.url,
        method: 'post',
        data: query.data
    });
};
